import java.util.Scanner;
import java.util.Random;
public class NamePP31 {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		Random out = new Random();
		String name,surname;
		int num1;
		System.out.print("Name:" );
                name = in.nextLine();
		System.out.print("Surname:");
		surname = in.nextLine();
		name = name.substring ( 0,1);
		surname = surname.substring(0,5);
		num1 = out.nextInt(90) + 10;
		System.out.println(name + surname + num1);

	}
}
